﻿<Window
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" x:Class="ReShapes.MainWindow"
        xmlns:D3 ="http://research.microsoft.com/DynamicDataDisplay/1.0"
        Title="ReShapes" Height="800" Width="1024" WindowStyle="None" WindowState="Maximized" WindowStartupLocation="CenterScreen" Loaded="Window_Loaded">
    <Window.Resources>
        <ControlTemplate x:Key="TextBoxBaseControlTemplate" TargetType="{x:Type TextBoxBase}">
            <Border x:Name="Bd" BorderBrush="#FFE4E4E4"
        		BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="2">
                <Border.Background>
                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                        <GradientStop Color="#FF1F1F1F" Offset="0" />
                        <GradientStop Color="#FF4E4D4D" Offset="0.01" />
                        <GradientStop Color="#FFA6A6A6" Offset="0.04" />
                        <GradientStop Color="#FFB0B0B0" Offset="0.96" />
                        <GradientStop Color="#FFB6B6B6" Offset="0.98" />
                        <GradientStop Color="#FF0786A2" Offset="1" />
                    </LinearGradientBrush>
                </Border.Background>
                <ScrollViewer x:Name="PART_ContentHost"/>
            </Border>
            <ControlTemplate.Triggers>
                <Trigger Property="IsEnabled" Value="False">
                    <Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}" TargetName="Bd"/>
                    <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>
                </Trigger>
                <Trigger Property="Width" Value="Auto">
                    <Setter Property="MinWidth" Value="100"/>
                </Trigger>
                <Trigger Property="Height" Value="Auto">
                    <Setter Property="MinHeight" Value="20"/>
                </Trigger>
            </ControlTemplate.Triggers>
        </ControlTemplate>

        <ControlTemplate x:Key="TextBox_Template_2" TargetType="{x:Type TextBoxBase}">
            <Border x:Name="Bd" BorderBrush="#FF2D2D2D"
        		BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="4">
                <Border.Background>
                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                        <GradientStop Color="#FF242424" Offset="0" />
                        <GradientStop Color="#FF343434" Offset="0.01" />
                        <GradientStop Color="#FF383838" Offset="0.04" />
                        <GradientStop Color="#FF454545" Offset="0.96" />
                        <GradientStop Color="#FF969696" Offset="1" />
                        <GradientStop Color="#FF969696" Offset="1" />
                    </LinearGradientBrush>
                </Border.Background>
                <ScrollViewer x:Name="PART_ContentHost"/>
            </Border>
            <ControlTemplate.Triggers>
                <Trigger Property="IsEnabled" Value="False">
                    <Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}" TargetName="Bd"/>
                    <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>
                </Trigger>
                <Trigger Property="Width" Value="Auto">
                    <Setter Property="MinWidth" Value="100"/>
                </Trigger>
                <Trigger Property="Height" Value="Auto">
                    <Setter Property="MinHeight" Value="20"/>
                </Trigger>
            </ControlTemplate.Triggers>
        </ControlTemplate>


        <ControlTemplate x:Key="TextBox_Template_3" TargetType="{x:Type TextBoxBase}">
            <Border x:Name="Bd" BorderBrush="#FF2D2D2D"
        		BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="4">
                <Border.Background>
                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                        <GradientStop Color="#FF242424" Offset="0" />
                        <GradientStop Color="#FF343434" Offset="0.04" />
                        <GradientStop Color="#FF383838" Offset="0.08" />
                        <GradientStop Color="#FF454545" Offset="0.96" />
                        <GradientStop Color="#FF969696" Offset="1" />
                    </LinearGradientBrush>
                </Border.Background>
                <ScrollViewer x:Name="PART_ContentHost"/>
            </Border>
            <ControlTemplate.Triggers>
                <Trigger Property="IsEnabled" Value="False">
                    <Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}" TargetName="Bd"/>
                    <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>
                </Trigger>
                <Trigger Property="Width" Value="Auto">
                    <Setter Property="MinWidth" Value="100"/>
                </Trigger>
                <Trigger Property="Height" Value="Auto">
                    <Setter Property="MinHeight" Value="20"/>
                </Trigger>
            </ControlTemplate.Triggers>
        </ControlTemplate>

        <Style x:Key="{x:Type ProgressBar}" TargetType="{x:Type ProgressBar}">
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="{x:Type ProgressBar}">
                        <Border x:Name="BorderBackground" CornerRadius="4" BorderThickness="2" BorderBrush="Black">
                            <Border.Background>
                                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                    <GradientStop Color="#FF242424" Offset="0" />
                                    <GradientStop Color="#FF444444" Offset="1" />
                                </LinearGradientBrush>
                            </Border.Background>
                            <Grid>
                                <VisualStateManager.VisualStateGroups>
                                    <VisualStateGroup x:Name="CommonStates">
                                        <VisualState x:Name="Determinate" />
                                        <VisualState x:Name="Indeterminate" />
                                    </VisualStateGroup>
                                </VisualStateManager.VisualStateGroups>
                                <Border x:Name="PART_Track" Margin="2" BorderThickness="1" CornerRadius="2" />
                                <Border x:Name="PART_Indicator" Margin="0" BorderThickness="1" CornerRadius="2" HorizontalAlignment="Left" Background="#00E6E6E6" ClipToBounds="True">
                                    <Border x:Name="DiagonalDecorator" Width="5000">
                                        <Border.Background>
                                            <DrawingBrush TileMode="Tile" Stretch="None" Viewbox="0,0,1,1" Viewport="0,0,30,30" ViewportUnits="Absolute">
                                                <DrawingBrush.RelativeTransform>
                                                    <TranslateTransform X="0" Y="0" />
                                                </DrawingBrush.RelativeTransform>
                                                <DrawingBrush.Drawing>
                                                    <GeometryDrawing Geometry="M10,0 25,0 15,25 0,25 Z" Brush="#FF0077FF"/>
                                                </DrawingBrush.Drawing>
                                            </DrawingBrush>
                                        </Border.Background>
                                        <Border.Triggers>
                                            <EventTrigger RoutedEvent="FrameworkElement.Loaded">
                                                <BeginStoryboard>
                                                    <Storyboard>
                                                        <DoubleAnimation Storyboard.TargetProperty="(Border.Background).(Brush.RelativeTransform).(TranslateTransform.X)" From="0" To="0.5" RepeatBehavior="Forever" Duration="0:0:30" />
                                                    </Storyboard>
                                                </BeginStoryboard>
                                            </EventTrigger>
                                        </Border.Triggers>
                                    </Border>
                                </Border>
                            </Grid>
                        </Border>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
    </Window.Resources>

    <Window.Background>
        <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
            <GradientStop Color="#FFB4B4B4" Offset="1" />
            <GradientStop Color="#FFE6E6E6" Offset="0" />
        </LinearGradientBrush>
    </Window.Background>

    <Grid RenderTransformOrigin="0.597,0.48">
        <TabControl Margin="212,12,26,28" x:Name="Process_and_Details_Tab" SizeChanged="Process_and_Details_Tab_SizeChanged" SelectedIndex="0" Background="#00000000" BorderThickness="0" BorderBrush="Transparent" SelectionChanged="Process_and_Details_Tab_SelectionChanged" TabIndex="13" >
            <TabItem Header="RP" x:Name="Process_Tab" TabIndex="14" Visibility="Collapsed">
                <Grid Background="#FFADADAD">
                    <Label Content="Match Description" FontStyle="Normal" FontWeight="Normal" Height="28" HorizontalAlignment="Left" Margin="486,166,0,0" x:Name="Match_Description" VerticalAlignment="Top" Visibility="Hidden" />
                    <Grid Margin="0,10,6,0" x:Name="Results_Grid" Background="#FFADADAD">
                        <RadioButton Content="Table" Height="16" Margin="487,94,0,0" x:Name="Level_result" VerticalAlignment="Top" HorizontalAlignment="Left" IsChecked="True" Checked="Level_result_Checked" Foreground="Black" IsEnabled="False" />
                        <Grid x:Name="Buttom_Controlers_Grid" Margin="-9,0,-9,-3" Height="29" VerticalAlignment="Bottom" Background="#FF2E3438">
                            <Label Content="Histogram" x:Name="Segmentation_Chart_L" Margin="0,1,39,0" Foreground="White" HorizontalAlignment="Right" Width="127" HorizontalContentAlignment="Center" MouseEnter="Segmentation_Chart_L_MouseEnter" MouseLeave="Segmentation_Chart_L_MouseLeave" MouseDown="Segmentation_Chart_L_MouseDown" IsEnabled="False" />
                            <Label Content="Illustrate Transformation" x:Name="Illustrate_Transformation_L" Margin="0,0,171,1" Foreground="White" HorizontalAlignment="Right" Width="180" HorizontalContentAlignment="Center" MouseEnter="Illustrate_Transformation_L_MouseEnter" MouseLeave="Illustrate_Transformation_L_MouseLeave" MouseDown="Illustrate_Transformation_L_MouseDown" IsEnabled="False" />
                        </Grid>
                        <RadioButton Content="Tabel" Height="16" Margin="487,53,0,0" x:Name="Alpha_set_RB" VerticalAlignment="Top" HorizontalAlignment="Left" Checked="Alpha_set_RB_Checked" Foreground="Black" IsEnabled="False" IsChecked="True" />
                        <Label Content="Reasoning Results" Height="28" x:Name="Reasoning_Results_L" FontStyle="Normal" FontWeight="Bold" FontSize="14" FontFamily="Tahoma" Margin="269,47,0,0" HorizontalAlignment="Left" Width="154" VerticalAlignment="Top" />
                        <Label Content="Compared Figures" Height="28" HorizontalAlignment="Left" Margin="10,14,0,0" x:Name="Compared_Figures_L" VerticalAlignment="Top" FontFamily="Tahoma" FontSize="14" FontWeight="Bold" />
                        <DataGrid AlternatingRowBackground="#FF8695A0" AutoGenerateColumns="False" CanUserResizeColumns="False" CanUserResizeRows="False" DataContext="{Binding}" GridLinesVisibility="Horizontal" HeadersVisibility="Column" Height="84" HorizontalContentAlignment="Center" HorizontalGridLinesBrush="#FF9D9D9D" IsReadOnly="True" Margin="10,47,0,0" x:Name="Compared_Figs_DG" RowBackground="#FFADADAD" VerticalAlignment="Top" VerticalScrollBarVisibility="Auto" BorderBrush="Black" HorizontalAlignment="Left" Width="230" SelectionChanged="Compared_Figs_DG_SelectionChanged" VerticalGridLinesBrush="#00000000" Background="#FFADADAD" BorderThickness="0.5" VerticalContentAlignment="Center">
                            <DataGrid.Resources>
                                <Style TargetType="{x:Type DataGridColumnHeader}">
                                    <Setter Property="Background" Value="#FF2E3438"/>
                                    <Setter Property="Foreground" Value="#FF9FAAB4"/>
                                    <Setter Property="HorizontalContentAlignment" Value="Center"/>
                                    <Setter Property="VerticalContentAlignment" Value="Center"/>
                                    <Setter Property="Height" Value="25"/>
                                </Style>
                                <Style TargetType="{x:Type DataGridCell}">
                                    <Setter Property="TextBlock.TextAlignment" Value="Center"/>
                                </Style>
                                <SolidColorBrush x:Key="{x:Static SystemColors.HighlightBrushKey}" Color="OrangeRed"/>
                            </DataGrid.Resources>
                        </DataGrid>
                        <DataGrid x:Name="Iterations_DG" HorizontalAlignment="Left" Margin="10,138,0,31" Width="230" AutoGenerateColumns="False" Background="#FFADADAD" BorderThickness="0.5" CanUserReorderColumns="False" CanUserResizeColumns="False" CanUserResizeRows="False" CanUserSortColumns="False" HeadersVisibility="Column" GridLinesVisibility="None" RowBackground="#FFADADAD" RowHeight="25" ColumnHeaderHeight="25" IsReadOnly="True" BorderBrush="Black" AlternatingRowBackground="#FF8695A0" SelectionChanged="Iterations_DG_SelectionChanged" FontFamily="Tahoma">
                            <DataGrid.Resources>
                                <Style TargetType="{x:Type DataGridColumnHeader}">
                                    <Setter Property="Background" Value="#FF2E3438"/>
                                    <Setter Property="Foreground" Value="#FF9FAAB4"/>
                                    <Setter Property="HorizontalContentAlignment" Value="Center"/>
                                    <Setter Property="VerticalContentAlignment" Value="Center"/>
                                    <Setter Property="Height" Value="25"/>
                                </Style>
                                <Style TargetType="{x:Type DataGridCell}">
                                    <Setter Property="TextBlock.TextAlignment" Value="Center"/>
                                </Style>
                                <SolidColorBrush x:Key="{x:Static SystemColors.HighlightBrushKey}" Color="OrangeRed"/>
                            </DataGrid.Resources>
                        </DataGrid>
                        <TabControl x:Name="Re_Gr_Tab" Margin="245,115,0,26" Background="Transparent" BorderThickness="0">
                            <TabItem Header="TabItem" Background="#00000000" Visibility="Hidden">
                                <Grid Background="#FFE5E5E5">
                                    <DataGrid AutoGenerateColumns="False" CanUserResizeColumns="True" CanUserResizeRows="False" DataContext="{Binding}" GridLinesVisibility="None" HeadersVisibility="Column" HorizontalContentAlignment="Center" HorizontalGridLinesBrush="#FF9D9D9D" IsReadOnly="True" x:Name="Results_DG" VerticalScrollBarVisibility="Auto" BorderBrush="Black" CanUserReorderColumns="False" MouseDoubleClick="Results_DG_MouseDoubleClick" VerticalGridLinesBrush="#00000000" Background="#FFADADAD" RowHeight="25" RowBackground="#FFADADAD" AlternatingRowBackground="#FF8695A0" BorderThickness="0.5" FontFamily="Tahoma">
                                        <DataGrid.Resources>
                                            <Style TargetType="{x:Type DataGridColumnHeader}">
                                                <Setter Property="Background" Value="#FF2E3438"/>
                                                <Setter Property="Foreground" Value="#FF9FAAB4"/>
                                                <Setter Property="HorizontalContentAlignment" Value="Center"/>
                                                <Setter Property="VerticalContentAlignment" Value="Center"/>
                                                <Setter Property="Height" Value="25"/>
                                            </Style>
                                            <Style TargetType="{x:Type DataGridCell}">
                                                <Setter Property="TextBlock.TextAlignment" Value="Center"/>
                                            </Style>
                                            <SolidColorBrush x:Key="{x:Static SystemColors.HighlightBrushKey}" Color="OrangeRed"/>
                                        </DataGrid.Resources>
                                    </DataGrid>
                                </Grid>
                            </TabItem>
                            <TabItem Header="TabItem" Background="#00000000" Visibility="Hidden">
                                <Grid x:Name="Graph_Grid" Background="Transparent">
                                    <D3:ChartPlotter x:Name="Chart" Background="Transparent" Margin="0,10,0,0" FontFamily="Tahoma" Foreground="Black" FontSize="10">
                                        <D3:VerticalAxisTitle x:Name="VerticalAxisTitle" Content="Match Score" FontSize="12"/>
                                        <D3:HorizontalAxisTitle x:Name="HorizontalAxisTitle" Content="Rotation Angles" FontSize="12"/>
                                    </D3:ChartPlotter>
                                </Grid>
                            </TabItem>
                        </TabControl>
                        <RadioButton Content="Graph" Height="16" Margin="559,97,0,0" x:Name="Level_result_graph" VerticalAlignment="Top" HorizontalAlignment="Left" Checked="Level_result_graph_Checked" Foreground="Black" IsEnabled="False" />
                        <RadioButton Content="All Results in a graph" Height="16" Margin="487,115,0,0" x:Name="All_result_graph" VerticalAlignment="Top" HorizontalAlignment="Left" Checked="All_result_graph_Checked" Foreground="Black" IsEnabled="False" />
                        <Label Content="d e v e l o p e d   b y" Height="28" HorizontalAlignment="Right" Margin="0,-17,10,0" x:Name="by_Vahid_Jalili_L1" VerticalAlignment="Top" Width="126" HorizontalContentAlignment="Center" Foreground="#FF595959" />
                        <Label Content="vahid.jalili@polimi.it" Height="28" HorizontalAlignment="Right" Margin="0,16,10,0" x:Name="by_Vahid_Jalili_L3" VerticalAlignment="Top" Width="126" HorizontalContentAlignment="Center" Foreground="#FF595959" />
                        <Label Content="Vahid Jalili" Height="35" HorizontalAlignment="Right" Margin="0,-8,10,0" x:Name="by_Vahid_Jalili_L2" VerticalAlignment="Top" Width="126" FontSize="22" FontWeight="Bold" HorizontalContentAlignment="Center" Foreground="White" />
                        <CheckBox x:Name="LogarithmicAllResultsPlot" Content="Logarithmic Y-axis" HorizontalAlignment="Left" Margin="631,115,0,0" VerticalAlignment="Top" Width="123" ToolTip="When checked, all results will be plotted in Based-10 Logarithmic scale on Y-axis" Checked="LogarithmicAllResultsPlot_Checked" Unchecked="LogarithmicAllResultsPlot_Unchecked"/>
                        <RadioButton Content="Content" Height="16" Margin="487,73,0,0" x:Name="GammaContents_RB" VerticalAlignment="Top" HorizontalAlignment="Left" IsChecked="False" Foreground="Black" IsEnabled="False" Checked="GammaContents_RB_Checked" />
                        <RadioButton Content="Distribution" Height="16" Margin="559,73,0,0" x:Name="GammaDistribution_RB" VerticalAlignment="Top" HorizontalAlignment="Left" IsChecked="False" Foreground="Black" IsEnabled="False" Checked="GammaDistribution_RB_Checked" />
                        <Label x:Name="GammaLabel" Content="Gamma" HorizontalAlignment="Left" Margin="422,73,0,0" VerticalAlignment="Top" Width="53" Height="16" Padding="0" HorizontalContentAlignment="Right"/>
                        <Label x:Name="ResultsLabel" Content="Results" HorizontalAlignment="Left" Margin="422,94,0,0" VerticalAlignment="Top" Width="53" Height="16" Padding="0" HorizontalContentAlignment="Right"/>
                        <Label x:Name="GammaLabel_Copy" Content="Alpha" HorizontalAlignment="Left" Margin="421,53,0,0" VerticalAlignment="Top" Width="53" Height="16" Padding="0" HorizontalContentAlignment="Right"/>
                    </Grid>
                </Grid>
            </TabItem>
            <TabItem Header="F in D" x:Name="Figure_in_Details_Tab" TabIndex="15" Visibility="Collapsed">
                <TabItem.Background>
                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                        <GradientStop Color="#FFB4B4B4" Offset="1" />
                        <GradientStop Color="#FFE6E6E6" Offset="0" />
                    </LinearGradientBrush>
                </TabItem.Background>
                <Grid Background="#FFADADAD" Margin="0,-2,0,0">
                    <Canvas Height="39" x:Name="New_Figure_Add_B_Canvas_Continue" Width="Auto" Margin="440,0,-4,-3" VerticalAlignment="Bottom" >
                        <Canvas.Background>
                            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                <GradientStop Color="#FF525252" Offset="0.043" />
                                <GradientStop Color="Black" Offset="1" />
                                <GradientStop Color="Black" Offset="0.957" />
                                <GradientStop Color="#FF171616" Offset="0.918" />
                                <GradientStop Color="White" Offset="0" />
                                <GradientStop Color="White" Offset="0.014" />
                            </LinearGradientBrush>
                        </Canvas.Background>
                        <Canvas Canvas.Left="10" Canvas.Top="10" Height="39" x:Name="canvas1" Width="Auto">
                            <Canvas.Background>
                                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                    <GradientStop Color="#FF525252" Offset="0.043" />
                                    <GradientStop Color="Black" Offset="1" />
                                    <GradientStop Color="Black" Offset="0.957" />
                                    <GradientStop Color="#FF171616" Offset="0.918" />
                                    <GradientStop Color="White" Offset="0" />
                                    <GradientStop Color="White" Offset="0.014" />
                                </LinearGradientBrush>
                            </Canvas.Background>
                        </Canvas>
                    </Canvas>
                    <Canvas x:Name="New_Figure_Canvas" Margin="0,11,5,51" Width="421" HorizontalAlignment="Right" Height="662" VerticalAlignment="Center" Background="#00000000"/>
                    <Label Content="Add this Figure" Foreground="Gray" Height="39" x:Name="Add_this_Figure_L" Width="160" HorizontalAlignment="Right" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" MouseEnter="Add_this_Figure_L_MouseEnter" MouseLeave="Add_this_Figure_L_MouseLeave" MouseDown="Add_this_Figure_L_MouseDown" VerticalAlignment="Bottom" IsEnabled="False" Background="#00000000" Margin="0,0,10,-3" TabIndex="23"/>
                    <Canvas x:Name="New_Figure_Add_B_Canvas" Margin="-4,0,323,-3" Height="39" VerticalAlignment="Bottom">
                        <Canvas.Background>
                            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                <GradientStop Color="#FF525252" Offset="0.043" />
                                <GradientStop Color="Black" Offset="1" />
                                <GradientStop Color="Black" Offset="0.957" />
                                <GradientStop Color="#FF171616" Offset="0.918" />
                                <GradientStop Color="White" Offset="0" />
                                <GradientStop Color="White" Offset="0.014" />
                            </LinearGradientBrush>
                        </Canvas.Background>
                        <Label Canvas.Left="340" Canvas.Top="6" Content="Add" Foreground="White" Height="28" MouseDown="Save_Preview_Figure_L_MouseDown" MouseEnter="Save_Preview_Figure_L_MouseEnter" MouseLeave="Save_Preview_Figure_L_MouseLeave" x:Name="Save_Preview_Figure_L" Visibility="Visible" IsEnabled="True" TabIndex="21" Width="31" />
                        <Label Canvas.Left="6" Canvas.Top="6" Content="Undo" Foreground="Gray" Height="28" x:Name="Undo_Figure_Design" Visibility="Visible" IsEnabled="False" TabIndex="20" />
                        <TextBox BorderBrush="Black" Canvas.Left="51" Canvas.Top="4" Focusable="False" FontSize="14" Foreground="White" Height="30" HorizontalContentAlignment="Center" IsReadOnly="True" x:Name="EQ_TB" Padding="1" Template="{StaticResource TextBox_Template_2}" Text="" TextAlignment="Center" VerticalContentAlignment="Center" Visibility="Visible" Width="280" Background="#00000000"/>
                    </Canvas>
                    <Label Content="Cancel" Foreground="White" x:Name="Cancel_adding_new_Figure" HorizontalContentAlignment="Center" MouseDown="Cancel_adding_new_Figure_MouseDown" MouseEnter="Cancel_adding_new_Figure_MouseEnter" MouseLeave="Cancel_adding_new_Figure_MouseLeave" VerticalContentAlignment="Center" Margin="0,0,187,-3" HorizontalAlignment="Right" Width="64" Height="38" VerticalAlignment="Bottom" TabIndex="22" />
                    <Grid x:Name="DG" HorizontalAlignment="Left" Margin="7,11,0,51" Width="321" Background="LightGray">
                        <Label Content="Name" x:Name="Figure_Name_L" FontSize="14" Margin="21,34,0,0" HorizontalAlignment="Left" Width="47" Height="28" VerticalAlignment="Top" />
                        <TextBox Template="{StaticResource TextBoxBaseControlTemplate}" HorizontalContentAlignment="Center" x:Name="Figure_Name_TB" TabIndex="0" VerticalContentAlignment="Center" Visibility="Visible" Foreground="Black" SelectionBrush="Black" BorderBrush="#00000000" Margin="70,33,0,0" HorizontalAlignment="Left" Width="191" Height="27" VerticalAlignment="Top"/>
                        <CheckBox Content="Preview" x:Name="Preview" IsChecked="True" Margin="29,67,0,0" HorizontalAlignment="Left" Width="58" Height="16" VerticalAlignment="Top" TabIndex="1" />
                        <Grid x:Name="PS_Grid" HorizontalAlignment="Left" Height="76" Margin="0,112,0,0" VerticalAlignment="Top" Width="321" Background="#00000000">
                            <RadioButton Checked="R_of_PF_RB_Checked" Content="Rotation of Previous Shape" FontSize="14" FontStyle="Normal" FontWeight="Normal" IsChecked="False" x:Name="R_of_PF_RB" Panel.ZIndex="1" TabIndex="2" Margin="30,6,0,0" HorizontalAlignment="Left" Width="190" Height="16" VerticalAlignment="Top" />
                            <TextBlock x:Name="RD_L" Text="Rotation Degree" Visibility="Visible" Margin="30,40,0,0" HorizontalAlignment="Left" Width="100" Height="22" VerticalAlignment="Top" TextAlignment="Right" />
                            <TextBox FontSize="14" Foreground="Black" HorizontalContentAlignment="Center" x:Name="RD_TB" TabIndex="3" Template="{StaticResource TextBoxBaseControlTemplate}" VerticalContentAlignment="Center" Visibility="Visible" Text="0" Margin="140,39,0,0" HorizontalAlignment="Left" Width="100" Height="23" VerticalAlignment="Top" KeyDown="RD_TB_KeyDown" TextChanged="RD_TB_TextChanged" GotFocus="RD_TB_GotFocus" Focusable="False" FontFamily="Tahoma" />
                            <Label Content="►" x:Name="Draw_PFR_L" FontSize="16" Margin="298,0,0,0" HorizontalAlignment="Left" Width="23" Height="76" VerticalAlignment="Top" FontFamily="Arial" VerticalContentAlignment="Center" Foreground="#FF9AA9B4" Background="#FF72818C" MouseEnter="Draw_PFR_L_MouseEnter" MouseLeave="Draw_PFR_L_MouseLeave" MouseDown="Draw_PFR_L_MouseDown" />
                        </Grid>
                        <Grid x:Name="RF_Grid" HorizontalAlignment="Left" Height="237" Margin="0,196,0,0" VerticalAlignment="Top" Width="321" Background="#00000000">
                            <RadioButton Checked="Ad_Random_Points_RB_Checked" Content="Add Random Points" FontSize="14" FontStyle="Normal" FontWeight="Normal" x:Name="Ad_Random_Points_RB" Panel.ZIndex="1" TabIndex="4" Margin="30,10,0,0" HorizontalAlignment="Left" Width="153" Height="16" VerticalAlignment="Top" IsChecked="True" />
                            <TextBlock x:Name="Random_Point_Count_L" Text="Point Count" Visibility="Visible" TextAlignment="Right" Margin="30,45,0,0" HorizontalAlignment="Left" Width="100" Height="22" VerticalAlignment="Top" />
                            <TextBox FontSize="14" Foreground="Black" HorizontalContentAlignment="Center" x:Name="RP_Count_TB" TabIndex="5" Template="{StaticResource TextBoxBaseControlTemplate}" VerticalContentAlignment="Center" Visibility="Visible" Text="0" Margin="140,41,0,0" HorizontalAlignment="Left" Width="100" Height="23" VerticalAlignment="Top" KeyDown="RP_Count_TB_KeyDown" TextChanged="RP_Count_TB_TextChanged" GotFocus="RP_Count_TB_GotFocus" FontFamily="Tahoma" LostFocus="RP_Count_TB_LostFocus" />
                            <TextBlock FontSize="10" x:Name="AN_AXY_Random_Point" Text="X                           Y" Visibility="Visible" Margin="127,156,0,0" HorizontalAlignment="Left" Width="91" Height="22" VerticalAlignment="Top" />
                            <TextBlock x:Name="R_AP" Text="        A (                        ,                       )" Visibility="Visible" Margin="51,176,0,0" HorizontalAlignment="Left" Width="209" Height="22" VerticalAlignment="Top" />
                            <TextBox FontSize="14" Foreground="Black" HorizontalContentAlignment="Center" x:Name="R_AX_TB" TabIndex="9" Template="{StaticResource TextBoxBaseControlTemplate}" VerticalContentAlignment="Center" Visibility="Visible" Margin="100,174,0,0" HorizontalAlignment="Left" Width="60" Height="23" VerticalAlignment="Top" Text="0" GotFocus="R_AX_TB_GotFocus" KeyDown="R_AX_TB_KeyDown" TextChanged="R_AX_TB_TextChanged" FontFamily="Tahoma" LostFocus="R_AX_TB_LostFocus" />
                            <TextBox FontSize="14" Foreground="Black" HorizontalContentAlignment="Center" x:Name="R_AY_TB" TabIndex="10" Template="{StaticResource TextBoxBaseControlTemplate}" VerticalContentAlignment="Center" Visibility="Visible" Margin="180,174,0,0" HorizontalAlignment="Left" Width="60" Height="23" VerticalAlignment="Top" Text="0" GotFocus="R_AY_TB_GotFocus" KeyDown="R_AY_TB_KeyDown" TextChanged="R_AY_TB_TextChanged" FontFamily="Tahoma" LostFocus="R_AY_TB_LostFocus" />
                            <TextBlock x:Name="R_BP" Text="        B (                        ,                       )" Visibility="Visible" Margin="51,204,0,0" HorizontalAlignment="Left" Width="203" Height="22" VerticalAlignment="Top" />
                            <TextBox FontSize="14" Foreground="Black" HorizontalContentAlignment="Center" x:Name="R_BX_TB" TabIndex="11" Template="{StaticResource TextBoxBaseControlTemplate}" VerticalContentAlignment="Center" Visibility="Visible" Margin="100,202,0,0" Height="23" VerticalAlignment="Top" HorizontalAlignment="Left" Width="60" Text="0" GotFocus="R_BX_TB_GotFocus" KeyDown="R_BX_TB_KeyDown" TextChanged="R_BX_TB_TextChanged" FontFamily="Tahoma" LostFocus="R_BX_TB_LostFocus" />
                            <TextBox FontSize="14" Foreground="Black" HorizontalContentAlignment="Center" x:Name="R_BY_TB" TabIndex="12" Template="{StaticResource TextBoxBaseControlTemplate}" VerticalContentAlignment="Center" Visibility="Visible" Margin="180,202,0,0" HorizontalAlignment="Left" Width="60" Height="23" VerticalAlignment="Top" Text="0" GotFocus="R_BY_TB_GotFocus" KeyDown="R_BY_TB_KeyDown" TextChanged="R_BY_TB_TextChanged" FontFamily="Tahoma" LostFocus="R_BY_TB_LostFocus" />
                            <Grid x:Name="sub_RB_grid" HorizontalAlignment="Left" Height="69" Margin="39,76,0,0" VerticalAlignment="Top" Width="130">
                                <RadioButton Content="Rectangular range" FontStyle="Normal" FontWeight="Normal" IsChecked="False" x:Name="R_R_R_RB" Panel.ZIndex="1" TabIndex="7" Margin="5,27,0,0" HorizontalAlignment="Left" Width="121" Height="16" VerticalAlignment="Top" Checked="R_R_R_RB_Checked" />
                                <RadioButton Content="Circular range" IsChecked="False" x:Name="R_C_R_RB" Panel.ZIndex="1" TabIndex="8" Margin="5,50,0,0" HorizontalAlignment="Left" Width="121" Height="16" VerticalAlignment="Top" Checked="R_C_R_RB_Checked" />
                                <RadioButton Content="Full range" FontStyle="Normal" FontWeight="Normal" IsChecked="True" x:Name="R_F_R_RB" Panel.ZIndex="1" TabIndex="6" Margin="5,4,0,0" HorizontalAlignment="Left" Width="121" Height="16" VerticalAlignment="Top" Checked="R_F_R_RB_Checked" />
                            </Grid>
                            <Label x:Name="A_R_N_Report_L" Content="00.00 %" HorizontalAlignment="Left" Margin="243,40,0,0" VerticalAlignment="Top" FontFamily="Tw Cen MT" FontSize="14" Foreground="White" Visibility="Hidden"/>
                            <Label Content="►" x:Name="Draw_Random_Points_L" FontSize="16" Margin="298,0,0,0" HorizontalAlignment="Left" Width="23" Height="237" VerticalAlignment="Top" FontFamily="Arial" VerticalContentAlignment="Center" Foreground="#FF9AA9B4" MouseEnter="Draw_Random_Points_L_MouseEnter" MouseLeave="Draw_Random_Points_L_MouseLeave" MouseDown="Draw_Random_Points_L_MouseDown" Background="#FF72818C" />
                        </Grid>
                        <Grid x:Name="BS_Grid" HorizontalAlignment="Left" Height="188" Margin="0,445,0,0" VerticalAlignment="Top" Width="321">
                            <TextBlock x:Name="AN_BP" Text="        B (                        ,                       )" Visibility="Visible" Margin="51,155,0,0" HorizontalAlignment="Left" Width="203" Height="22" VerticalAlignment="Top" />
                            <RadioButton Checked="AN_Line_RB_Checked" Content="Add Line" FontSize="14" FontStyle="Normal" FontWeight="Normal" x:Name="AN_Line_RB" Panel.ZIndex="1" TabIndex="13" Margin="30,12,0,0" HorizontalAlignment="Left" Width="153" Height="16" VerticalAlignment="Top" />
                            <RadioButton Checked="AN_Circle_RB_Checked" Content="Add Circle" FontSize="14" IsChecked="False" x:Name="AN_Circle_RB" Panel.ZIndex="1" TabIndex="14" Margin="30,40,0,0" HorizontalAlignment="Left" Width="153" Height="16" VerticalAlignment="Top" />
                            <TextBlock x:Name="Progress_Step_Size_L" Text="Progress Step Size : 1" Visibility="Visible" FontSize="11" Foreground="Black" Margin="112,67,0,0" HorizontalAlignment="Left" Width="140" Height="22" VerticalAlignment="Top" />
                            <Slider x:Name="Progress_Step_Size_Slider" Interval="1" Minimum="0.05" Maximum="1" LargeChange="0.01" ValueChanged="Progress_Step_Size_Slider_ValueChanged" Value="1" IsEnabled="True" SmallChange="0.01" Margin="100,80,0,0" HorizontalAlignment="Left" Width="140" Height="23" VerticalAlignment="Top" TabIndex="15" GotFocus="Progress_Step_Size_Slider_GotFocus" />
                            <TextBlock FontSize="10" x:Name="AN_AXY" Text="X                           Y" Visibility="Visible" Margin="127,110,0,0" HorizontalAlignment="Left" Width="91" Height="22" VerticalAlignment="Top" />
                            <TextBlock x:Name="AN_AP" Text="        A (                        ,                       )" Visibility="Visible" Margin="51,127,0,0" HorizontalAlignment="Left" Width="209" Height="22" VerticalAlignment="Top" />
                            <TextBox FontSize="14" Foreground="Black" HorizontalContentAlignment="Center" x:Name="AN_AX_TB" TabIndex="16" Template="{StaticResource TextBoxBaseControlTemplate}" VerticalContentAlignment="Center" Visibility="Visible" Margin="100,125,0,0" HorizontalAlignment="Left" Width="60" Height="23" VerticalAlignment="Top" Text="0" KeyDown="AN_AX_TB_KeyDown" GotFocus="AN_AX_TB_GotFocus" TextChanged="AN_AX_TB_TextChanged" FontFamily="Tahoma" LostFocus="AN_AX_TB_LostFocus" />
                            <TextBox FontSize="14" Foreground="Black" HorizontalContentAlignment="Center" x:Name="AN_AY_TB" TabIndex="17" Template="{StaticResource TextBoxBaseControlTemplate}" VerticalContentAlignment="Center" Visibility="Visible" Margin="180,125,0,0" HorizontalAlignment="Left" Width="60" Height="23" VerticalAlignment="Top" Text="0" KeyDown="AN_AY_TB_KeyDown" GotFocus="AN_AY_TB_GotFocus" TextChanged="AN_AY_TB_TextChanged" FontFamily="Tahoma" LostFocus="AN_AY_TB_LostFocus" />
                            <TextBox FontSize="14" Foreground="Black" HorizontalContentAlignment="Center" x:Name="AN_BX_TB" TabIndex="18" Template="{StaticResource TextBoxBaseControlTemplate}" VerticalContentAlignment="Center" Visibility="Visible" Margin="100,153,0,0" Height="23" VerticalAlignment="Top" HorizontalAlignment="Left" Width="60" Text="0" KeyDown="AN_BX_TB_KeyDown" GotFocus="AN_BX_TB_GotFocus" TextChanged="AN_BX_TB_TextChanged" FontFamily="Tahoma" LostFocus="AN_BX_TB_LostFocus" />
                            <TextBox FontSize="14" Foreground="Black" HorizontalContentAlignment="Center" x:Name="AN_BY_TB" TabIndex="19" Template="{StaticResource TextBoxBaseControlTemplate}" VerticalContentAlignment="Center" Visibility="Visible" Margin="180,153,0,0" HorizontalAlignment="Left" Width="60" Height="23" VerticalAlignment="Top" Text="0" KeyDown="AN_BY_TB_KeyDown" GotFocus="AN_BY_TB_GotFocus" TextChanged="AN_BY_TB_TextChanged" FontFamily="Tahoma" LostFocus="AN_BY_TB_LostFocus" />
                            <CheckBox Content="Instant" x:Name="Instant_Progress_Step_Apply" IsChecked="True" Margin="40,85,0,0" HorizontalAlignment="Left" Width="59" Height="16" VerticalAlignment="Top" TabIndex="1" />
                            <Label Content="►" x:Name="Draw_Line_or_Circle_L" FontSize="16" Margin="298,0,0,0" HorizontalAlignment="Left" Width="23" Height="188" VerticalAlignment="Top" FontFamily="Arial" VerticalContentAlignment="Center" Foreground="#FF9AA9B4" Background="#FF72818C" MouseDown="Draw_Line_or_Circle_L_MouseDown" MouseEnter="Draw_Line_or_Circle_L_MouseEnter" MouseLeave="Draw_Line_or_Circle_L_MouseLeave" />
                        </Grid>
                    </Grid>
                </Grid>
            </TabItem>
            <TabItem Header="RF" x:Name="reView_Figure_tab" TabIndex="16" Visibility="Collapsed">
                <Grid Background="Black">
                    <Canvas Margin="102,62,111,108" x:Name="reView_Canvas" HorizontalAlignment="Center" Width="550" Height="550" VerticalAlignment="Center" Background="Black"/>
                    <Canvas Height="39" Margin="1,0,0,-1" x:Name="Tab2_Buttom_Canvas" Width="Auto" VerticalAlignment="Bottom">
                        <Canvas.Background>
                            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                <GradientStop Color="#FF525252" Offset="0.043" />
                                <GradientStop Color="Black" Offset="1" />
                                <GradientStop Color="Black" Offset="0.957" />
                                <GradientStop Color="#FF171616" Offset="0.918" />
                                <GradientStop Color="White" Offset="0" />
                                <GradientStop Color="White" Offset="0.014" />
                            </LinearGradientBrush>
                        </Canvas.Background>
                        <Canvas Canvas.Left="10" Canvas.Top="10" Height="39" x:Name="canvas3" Width="Auto">
                            <Canvas.Background>
                                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                    <GradientStop Color="#FF525252" Offset="0.043" />
                                    <GradientStop Color="Black" Offset="1" />
                                    <GradientStop Color="Black" Offset="0.957" />
                                    <GradientStop Color="#FF171616" Offset="0.918" />
                                    <GradientStop Color="White" Offset="0" />
                                    <GradientStop Color="White" Offset="0.014" />
                                </LinearGradientBrush>
                            </Canvas.Background>
                        </Canvas>
                    </Canvas>
                    <Label Content="Back to Reasoning Process" x:Name="Back_to_reasoning_process" Foreground="White" MouseEnter="Back_to_reasoning_process_MouseEnter" MouseLeave="Back_to_reasoning_process_MouseLeave" MouseDown="Back_to_reasoning_process_MouseDown" Margin="0,0,10,4" HorizontalAlignment="Right" Width="151" Height="28" VerticalAlignment="Bottom" />
                </Grid>
            </TabItem>
            <TabItem Header="IT" x:Name="Illustrate_Transformation" TabIndex="17" Visibility="Collapsed">
                <Grid>
                    <Canvas x:Name="Illustration_Main_Canvas" Width="Auto" Background="Black" Margin="0,0,0,39">
                        <Canvas Canvas.Left="363" Canvas.Top="8" Height="611" x:Name="Illustrating_Fig_B_Canvas" Width="388" Background="#00000000">
                            <Label Canvas.Left="300" Canvas.Top="6" Content="Figure B" FontFamily="Candara" FontSize="16" FontWeight="Bold" Foreground="#81FFFFFF" Height="32" x:Name="Fig_B_L" Width="80" />
                        </Canvas>
                        <Canvas Canvas.Left="6" Canvas.Top="6" Height="613" x:Name="Illustrating_Fig_A_Canvas" Width="388" Background="#00000000">
                            <Label Canvas.Left="298" Canvas.Top="6" Content="Figure A" Height="32" x:Name="Fig_A_L" FontFamily="Candara" FontSize="16" FontWeight="Bold" Foreground="#81FFFFFF" Width="80" />
                        </Canvas>
                    </Canvas>
                    <Canvas Height="39" x:Name="Illustrate_Tran_Canvas" Width="Auto" VerticalAlignment="Bottom">
                        <Canvas.Background>
                            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                <GradientStop Color="#FF525252" Offset="0.043" />
                                <GradientStop Color="Black" Offset="1" />
                                <GradientStop Color="Black" Offset="0.957" />
                                <GradientStop Color="#FF171616" Offset="0.918" />
                                <GradientStop Color="White" Offset="0" />
                                <GradientStop Color="White" Offset="0.014" />
                            </LinearGradientBrush>
                        </Canvas.Background>
                        <Canvas Canvas.Left="10" Canvas.Top="10" Height="39" x:Name="canvas6" Width="Auto">
                            <Canvas.Background>
                                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                    <GradientStop Color="#FF525252" Offset="0.043" />
                                    <GradientStop Color="Black" Offset="1" />
                                    <GradientStop Color="Black" Offset="0.957" />
                                    <GradientStop Color="#FF171616" Offset="0.918" />
                                    <GradientStop Color="White" Offset="0" />
                                    <GradientStop Color="White" Offset="0.014" />
                                </LinearGradientBrush>
                            </Canvas.Background>
                        </Canvas>
                        <Label Content="Speed                   msec" Foreground="White" Height="28" x:Name="Illustration_Speed_L" Width="133" HorizontalAlignment="Right" VerticalAlignment="Bottom" FontSize="10" Canvas.Left="300" Canvas.Top="7" />
                        <TextBox BorderBrush="Black" Focusable="False" FontSize="12" Foreground="White" Height="24" HorizontalContentAlignment="Center" IsReadOnly="False" x:Name="Illustration_Speed" Padding="1" Template="{StaticResource TextBox_Template_2}" Text="2000" TextAlignment="Center" VerticalContentAlignment="Center" Visibility="Visible" Width="48" HorizontalAlignment="Right" VerticalAlignment="Bottom" Background="#00000000" Canvas.Left="335" Canvas.Top="8"/>
                        <TextBox BorderBrush="Black" Focusable="False" FontSize="12" Foreground="White" Height="29" HorizontalContentAlignment="Center" IsReadOnly="False" x:Name="Illustrating_Trans_info" Padding="1" Template="{StaticResource TextBox_Template_2}" Text="" TextAlignment="Center" VerticalContentAlignment="Center" Visibility="Visible" Width="193" Background="#00000000" Canvas.Left="92" Canvas.Top="5"/>
                        <TextBox BorderBrush="Black" Focusable="False" FontSize="12" Foreground="White" Height="29" HorizontalContentAlignment="Center" IsReadOnly="True" x:Name="Match_ratio_in_Illustration" Padding="1" Template="{StaticResource TextBox_Template_2}" Text="" TextAlignment="Center" VerticalContentAlignment="Center" Visibility="Visible" Width="77" HorizontalAlignment="Left" Background="#00000000" Canvas.Left="10" Canvas.Top="5"/>
                    </Canvas>
                    <Label Content="Start Illustrate" Foreground="White" Height="28" x:Name="Start_Illustration_Show" Width="94" HorizontalAlignment="Right" VerticalAlignment="Bottom" MouseEnter="Start_Illustration_Show_MouseEnter" MouseLeave="Start_Illustration_Show_MouseLeave" MouseDown="Start_Illustration_Show_MouseDown" Margin="0,0,196,5" />
                    <Label Content="Back to Reasoning Process" Foreground="White" Height="28" HorizontalAlignment="Right" x:Name="Back_2_Reasoning_in_Illustration" Width="151" VerticalAlignment="Bottom" MouseDown="Back_2_Reasoning_in_Illustration_MouseDown" MouseEnter="Back_2_Reasoning_in_Illustration_MouseEnter" MouseLeave="Back_2_Reasoning_in_Illustration_MouseLeave" Margin="0,0,10,5" />
                    <Grid x:Name="Animation_Type_Grid" HorizontalAlignment="Left" Margin="10,0,0,44" Width="379" Height="32" VerticalAlignment="Bottom">
                        <RadioButton Content="Animation Type A" x:Name="Animation_Type_A" IsEnabled="False" Margin="13,0,0,10" HorizontalAlignment="Left" Width="128" Height="16" VerticalAlignment="Bottom" />
                        <RadioButton Content="Animation Type B" x:Name="Animation_Type_B" IsChecked="True" Margin="215,0,0,9" Height="16" VerticalAlignment="Bottom" HorizontalAlignment="Left" Width="110" Foreground="White" />
                    </Grid>
                </Grid>
            </TabItem>
            <TabItem Header="Chart_View" TabIndex="18" Visibility="Collapsed">
                <Grid x:Name="Chart_View_Grid" Margin="0,9,0,0" Background="Black">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="361*"/>
                        <ColumnDefinition Width="364*"/>
                    </Grid.ColumnDefinitions>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="44*"/>
                        <RowDefinition Height="361*"/>
                        <RowDefinition Height="57*"/>
                        <RowDefinition Height="249*"/>
                    </Grid.RowDefinitions>
                    <Canvas x:Name="Fig_A_Chart_Canvas" Margin="10,10,0,0" Grid.Row="1" Height="340" Width="360" Background="Black" HorizontalAlignment="Center" VerticalAlignment="Center"/>
                    <Canvas x:Name="Fig_B_Chart_Canvas" Grid.Column="1" Margin="0,10,10,0" Grid.Row="1" Height="341" VerticalAlignment="Center" HorizontalAlignment="Center" Width="363"/>
                    <Grid x:Name="Fig_A_Scale_Grid" HorizontalAlignment="Center" Height="44" Margin="10,10,0,0" Grid.Row="2" VerticalAlignment="Top" Width="365">
                        <Canvas x:Name="Fig_A_Scale_Canvas" Margin="0,6,2,0" Width="363" HorizontalAlignment="Center" Height="20" VerticalAlignment="Top" MaxWidth="360" MinWidth="360"/>
                        <Label x:Name="Fig_A_S_V2" Content="50" Foreground="White" HorizontalContentAlignment="Center" Margin="168,23,174,-5" HorizontalAlignment="Center"/>
                        <Label x:Name="Fig_A_S_V3" Content="100" Foreground="White" HorizontalContentAlignment="Right" Margin="334,21,1,-3" HorizontalAlignment="Center" Width="30"/>
                        <Label x:Name="Fig_A_S_V1" Content="0" Foreground="White" Margin="-3,21,338,-3" HorizontalAlignment="Center" Width="30"/>
                    </Grid>
                    <Grid x:Name="Fig_B_Scale_Grid" HorizontalAlignment="Center" Height="44" Margin="10,10,8,0" Grid.Row="2" VerticalAlignment="Top" Width="365" Grid.Column="1">
                        <Canvas x:Name="Fig_B_Scale_Canvas" Margin="0,6,2,0" Width="363" HorizontalAlignment="Center" Height="20" VerticalAlignment="Top" MaxWidth="360" MinWidth="360"/>
                        <Label x:Name="Fig_B_S_V2" Content="50" Foreground="White" HorizontalContentAlignment="Center" Margin="168,23,174,-5" HorizontalAlignment="Center"/>
                        <Label x:Name="Fig_B_S_V3" Content="100" Foreground="White" HorizontalContentAlignment="Right" Margin="334,21,1,-3" HorizontalAlignment="Center" Width="30"/>
                        <Label x:Name="Fig_B_S_V1" Content="0" Foreground="White" Margin="-3,21,338,-3" HorizontalAlignment="Center" Width="30"/>
                    </Grid>
                    <Canvas Height="39" Margin="1,0,0,-3" x:Name="Charts_Bottom_Canvas" Width="Auto" VerticalAlignment="Bottom" Grid.ColumnSpan="2" Grid.Row="3">
                        <Canvas.Background>
                            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                <GradientStop Color="#FF525252" Offset="0.043" />
                                <GradientStop Color="Black" Offset="1" />
                                <GradientStop Color="Black" Offset="0.957" />
                                <GradientStop Color="#FF171616" Offset="0.918" />
                                <GradientStop Color="White" Offset="0" />
                                <GradientStop Color="White" Offset="0.014" />
                            </LinearGradientBrush>
                        </Canvas.Background>
                        <Canvas Canvas.Left="10" Canvas.Top="10" Height="39" x:Name="canvas2" Width="Auto">
                            <Canvas.Background>
                                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                    <GradientStop Color="#FF525252" Offset="0.043" />
                                    <GradientStop Color="Black" Offset="1" />
                                    <GradientStop Color="Black" Offset="0.957" />
                                    <GradientStop Color="#FF171616" Offset="0.918" />
                                    <GradientStop Color="White" Offset="0" />
                                    <GradientStop Color="White" Offset="0.014" />
                                </LinearGradientBrush>
                            </Canvas.Background>
                        </Canvas>
                    </Canvas>
                    <Label Content="Back to Reasoning Process" x:Name="Back_to_reasoning_Charts_Tab" Foreground="White" Margin="0,0,10,3" HorizontalAlignment="Right" Width="151" Height="28" VerticalAlignment="Bottom" Grid.Column="1" Grid.Row="3" MouseDown="Back_to_reasoning_Charts_Tab_MouseDown" MouseEnter="Back_to_reasoning_Charts_Tab_MouseEnter" MouseLeave="Back_to_reasoning_Charts_Tab_MouseLeave" />
                    <Label x:Name="Loading_Chart_A" Content="Drawing is in progress ..." Foreground="#FFFF5D00" HorizontalContentAlignment="Center" FontFamily="Candara" FontSize="18" Height="40" VerticalContentAlignment="Center" Margin="76,95,76,115" Grid.Row="3"/>
                    <Label x:Name="Loading_Chart_B" Content="Drawing is in progress ..." Foreground="#FFFF5D00" HorizontalContentAlignment="Center" FontFamily="Candara" FontSize="18" Height="40" VerticalContentAlignment="Center" Grid.Column="1" Margin="76,95,79,115" Grid.Row="3"/>
                </Grid>
            </TabItem>
        </TabControl>
        <Label Content="Save" Height="28" x:Name="Save_B" MouseDown="Save_B_MouseDown" Margin="19,0,0,61" FontSize="14" HorizontalContentAlignment="Center" Foreground="White" MouseEnter="Save_B_MouseEnter" MouseLeave="Save_B_MouseLeave" HorizontalAlignment="Left" Width="188" VerticalAlignment="Bottom" VerticalContentAlignment="Top" TabIndex="11" Background="#FF1C1F21"/>
        <Label Content="Load" Height="28" x:Name="Load_B" MouseDown="Load_B_MouseDown" Margin="19,0,0,92" FontSize="14" HorizontalContentAlignment="Center" Foreground="White" MouseEnter="Load_B_MouseEnter" MouseLeave="Load_B_MouseLeave" HorizontalAlignment="Left" Width="188" VerticalAlignment="Bottom" VerticalContentAlignment="Top" TabIndex="10" Background="#FF1C1F21"/>
        <Label Content="Exit" Foreground="White" HorizontalContentAlignment="Center" x:Name="Exit_BT" VerticalContentAlignment="Top" Height="30" MouseEnter="Exit_BT_MouseEnter" MouseLeave="Exit_BT_MouseLeave" MouseDown="Exit_BT_MouseDown" FontSize="14" Margin="19,0,0,28.5" VerticalAlignment="Bottom" HorizontalAlignment="Left" Width="188" UseLayoutRounding="False" TabIndex="12" Background="#FF1C1F21"/>
        <Label Content="Run Reasoning" Foreground="White" HorizontalContentAlignment="Center" x:Name="Run_Reasoning_BT" VerticalContentAlignment="Top" MouseEnter="Run_Reasoning_BT_MouseEnter" MouseLeave="Run_Reasoning_BT_MouseLeave" MouseDown="Run_Reasoning_BT_MouseDown" FontSize="14" Margin="19,0,0,189" HorizontalAlignment="Left" Width="188" VerticalAlignment="Bottom" Height="30" TabIndex="9" Background="#FF1C1F21"/>
        <Label Content="Clearing Drawn Chats, Please wait ..." Height="30" HorizontalAlignment="Left" Margin="504,762,0,0" x:Name="Clearing_Drawn_Chart_L" VerticalAlignment="Top" FontFamily="Candara" FontSize="16" Foreground="Red" Visibility="Hidden" />
        <Label Content="Reset" Foreground="White" HorizontalContentAlignment="Center" x:Name="Reset_BT" VerticalContentAlignment="Top" FontSize="14" Margin="19,0,0,123" HorizontalAlignment="Left" Width="188" VerticalAlignment="Bottom" Height="30" TabIndex="9" MouseDown="Reset_BT_MouseDown" MouseEnter="Reset_BT_MouseEnter" MouseLeave="Reset_BT_MouseLeave" Background="#FF1C1F21"/>
        <Label Content="Export Results" Foreground="White" HorizontalContentAlignment="Center" x:Name="Export_BT" VerticalContentAlignment="Top" FontSize="14" Margin="19,0,0,156" HorizontalAlignment="Left" Width="188" VerticalAlignment="Bottom" Height="30" TabIndex="9" MouseDown="Export_BT_MouseDown" MouseEnter="Export_BT_MouseEnter" MouseLeave="Export_BT_MouseLeave" Background="#FF1C1F21"/>
        <Grid x:Name="Controls_Grid" HorizontalAlignment="Left" Margin="19,50,0,224" Width="188">
            <Grid x:Name="Matrix_Size_Grid" Height="69" Margin="5,6,0,0" HorizontalAlignment="Left" Width="180" VerticalAlignment="Top">
                <Grid.Background>
                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                        <GradientStop Color="#FFB4B4B4" Offset="1" />
                        <GradientStop Color="#FFE6E6E6" Offset="0" />
                    </LinearGradientBrush>
                </Grid.Background>
                <Label Content="Width ( x )" Height="28" HorizontalAlignment="Left" Margin="16,9,0,0" x:Name="FSW_L" VerticalAlignment="Top" />
                <TextBox Template="{StaticResource TextBoxBaseControlTemplate}" Height="23" HorizontalAlignment="Left" Margin="84,11,0,0" x:Name="FSW_TB" VerticalAlignment="Top" Width="73" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Text="50" Foreground="Black" KeyDown="FSW_TB_KeyDown" TabIndex="1" GotFocus="FSW_TB_GotFocus" TextChanged="FSW_TB_TextChanged" />
                <Label Content="Height ( y )" Height="28" HorizontalAlignment="Left" Margin="12,33,0,0" x:Name="FSH_L" VerticalAlignment="Top" />
                <TextBox Template="{StaticResource TextBoxBaseControlTemplate}" Height="23" HorizontalAlignment="Left" Margin="84,38,0,0" x:Name="FSH_TB" VerticalAlignment="Top" Width="73" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Text="50" Foreground="Black" KeyDown="FSH_TB_KeyDown" TabIndex="2" GotFocus="FSH_TB_GotFocus" TextChanged="FSH_TB_TextChanged" />
            </Grid>
            <Canvas Height="267" HorizontalAlignment="Left" x:Name="Settings_Canvas" VerticalAlignment="Bottom" Width="180" Background="#FFADADAD" Margin="5,0,0,2">
                <Label Content="Preferences" Foreground="White" Height="30" x:Name="Preferences_L" Width="180" HorizontalAlignment="Center" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Background="#FF2E3438" Canvas.Top="-1" />
                <Label Canvas.Left="23" Canvas.Top="121" Content="Omega" Height="28" x:Name="Omega_L" Width="63" HorizontalContentAlignment="Right" />
                <TextBox Canvas.Left="94" Canvas.Top="122" Foreground="Black" Height="23" HorizontalContentAlignment="Center" x:Name="Omega_TB" Template="{StaticResource TextBoxBaseControlTemplate}" Text="3" VerticalContentAlignment="Center" Width="73" KeyDown="Omega_TB_KeyDown" TextChanged="Omega_TB_TextChanged" TabIndex="5" GotFocus="Omega_TB_GotFocus" FontFamily="Tahoma" LostFocus="Omega_TB_LostFocus" />
                <Label Canvas.Left="23" Canvas.Top="149" Content="Lambda" Height="28" x:Name="Lambda_L" Width="63" HorizontalContentAlignment="Right" />
                <TextBox Canvas.Left="94" Canvas.Top="150" Foreground="Black" Height="23" HorizontalContentAlignment="Center" x:Name="Lambda_TB" Template="{StaticResource TextBoxBaseControlTemplate}" Text="10" VerticalContentAlignment="Center" Width="73" TextChanged="Lambda_TB_TextChanged" KeyDown="Lambda_TB_KeyDown" TabIndex="6" GotFocus="Lambda_TB_GotFocus" FontFamily="Tahoma" LostFocus="Lambda_TB_LostFocus" />
                <Label Canvas.Left="23" Canvas.Top="177" Content="Epsilon" Height="28" x:Name="Upsilon_L" Width="64" HorizontalContentAlignment="Right" />
                <TextBox Canvas.Left="94" Canvas.Top="178" Foreground="Black" Height="23" HorizontalContentAlignment="Center" x:Name="Upsilon_TB" Template="{StaticResource TextBoxBaseControlTemplate}" Text="10" VerticalContentAlignment="Center" Width="73" KeyDown="Upsilon_TB_KeyDown" TextChanged="Upsilon_TB_TextChanged" TabIndex="7" GotFocus="Upsilon_TB_GotFocus" FontFamily="Tahoma" LostFocus="Upsilon_TB_LostFocus" />
                <TextBox Canvas.Left="94" Canvas.Top="210" Foreground="Black" Height="23" HorizontalContentAlignment="Center" x:Name="Epsilon_TB" Template="{StaticResource TextBoxBaseControlTemplate}" Text="2.00" VerticalContentAlignment="Center" Width="73" ToolTip="Number of matches to be stored for each match ratio" TextChanged="Epsilon_TB_TextChanged" KeyDown="Epsilon_TB_KeyDown" TabIndex="8" LostFocus="Epsilon_TB_LostFocus" GotFocus="Epsilon_TB_GotFocus" FontFamily="Tahoma" />
                <Label Canvas.Left="23" Canvas.Top="209" Content="Precision" Height="28" x:Name="Eplison_L" Width="64" HorizontalContentAlignment="Right" />
                <Label Canvas.Left="72" Canvas.Top="238" Content="Max L =  8" Height="28" x:Name="Max_L_4_chosen_Epsilon" Width="95" />
                <CheckBox x:Name="Process_Neighbors" Content="Process Neighbors" Canvas.Left="11" Canvas.Top="45" Checked="Process_Neighbors_Checked" Unchecked="Process_Neighbors_Unchecked"/>
                <RadioButton x:Name="Akin_2_Iteration" Content="Akin to Iterations" Canvas.Left="23" Canvas.Top="69" IsEnabled="False"/>
                <RadioButton x:Name="Constant_Neighbor_RB" Content="Constant" Canvas.Left="23" Canvas.Top="96" Checked="Constant_Neighbor_RB_Checked" Unchecked="Constant_Neighbor_RB_Unchecked" IsEnabled="False"/>
                <TextBox Canvas.Left="94" Canvas.Top="93" Foreground="Black" Height="23" HorizontalContentAlignment="Center" x:Name="Constant_Neighbor_C_TB" Template="{StaticResource TextBoxBaseControlTemplate}" Text="2" VerticalContentAlignment="Center" Width="73" TabIndex="4" GotFocus="Constant_Neighbor_C_TB_GotFocus" FontFamily="Tahoma" LostFocus="Constant_Neighbor_C_TB_LostFocus" KeyDown="Constant_Neighbor_C_TB_KeyDown" TextChanged="Constant_Neighbor_C_TB_TextChanged" IsReadOnly="True" />
            </Canvas>
            <DataGrid AutoGenerateColumns="False" x:Name="Figures_DG" VerticalScrollBarVisibility="Auto" HeadersVisibility="Column" HorizontalGridLinesBrush="#FF9D9D9D" GridLinesVisibility="Horizontal" AlternatingRowBackground="#FFEBEBEB" RowBackground="White" MouseDoubleClick="Figures_DG_MouseDoubleClick" CanUserResizeColumns="False" CanUserResizeRows="False" DataContext="{Binding}" HorizontalContentAlignment="Center" IsReadOnly="True" VerticalGridLinesBrush="#00000000" Background="#FFADADAD" Margin="5,105,0,274" HorizontalAlignment="Left" Width="180">
                <DataGrid.Resources>
                    <Style TargetType="{x:Type DataGridColumnHeader}">
                        <Setter Property="Background" Value="#FF2E3438"/>
                        <Setter Property="Foreground" Value="#FF9FAAB4"/>
                        <Setter Property="HorizontalContentAlignment" Value="Center"/>
                        <Setter Property="VerticalContentAlignment" Value="Center"/>
                        <Setter Property="Height" Value="25"/>
                    </Style>
                    <Style TargetType="{x:Type DataGridCell}">
                        <Setter Property="TextBlock.TextAlignment" Value="Center"/>
                    </Style>
                    <SolidColorBrush x:Key="{x:Static SystemColors.HighlightBrushKey}" Color="OrangeRed"/>
                </DataGrid.Resources>
            </DataGrid>
            <Label Content="Draw New Figure" Foreground="White" x:Name="Draw_new_figure_L" MouseDown="Draw_new_figure_L_MouseDown" MouseEnter="Draw_new_figure_L_MouseEnter" MouseLeave="Draw_new_figure_L_MouseLeave" Width="180" HorizontalAlignment="Center" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" TabIndex="3" Margin="5,75,3,0" Height="30" VerticalAlignment="Top" Background="#FF1C1F21"/>
        </Grid>
        <Grid x:Name="Logo_Grid" HorizontalAlignment="Left" Height="49" Margin="58,14,0,0" VerticalAlignment="Top" Width="126">
            <Label x:Name="Logo_D" Content="HAPES" HorizontalAlignment="Right" Margin="0,8,9,0" VerticalAlignment="Top" FontFamily="Candara" FontSize="20" FontWeight="Thin" Foreground="#FF3EC500"/>
            <Label x:Name="Logo_C" Content="S" HorizontalAlignment="Right" Margin="0,1,67,0" VerticalAlignment="Top" FontFamily="Candara" FontSize="28" FontWeight="ExtraBold" Foreground="#FF3EC500"/>
            <Label x:Name="Logo_B" Content="E" HorizontalAlignment="Right" Margin="0,8,85,0" VerticalAlignment="Top" FontFamily="Candara" FontSize="20" FontWeight="Thin" Foreground="#FF3EC500"/>
            <Label x:Name="Logo_A" Content="R" HorizontalAlignment="Right" Margin="0,1,97,0" VerticalAlignment="Top" FontFamily="Candara" FontSize="28" FontWeight="ExtraBold" Foreground="#FF3EC500"/>
        </Grid>
    </Grid>
</Window>
